package com.interview.candidate.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.interview.common.domain.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 面试者基本信息表实体类
 *
 * @author zzw
 */
@Schema(name = "CandidateInfo", description = "面试者基本信息")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("candidate_info")
public class CandidateInfo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "面试者ID")
    @TableId
    private Long candidateId;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "性别（0男 1女 2未知）")
    private String gender;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "应聘职位")
    private String positionApplied;

    @Schema(description = "学历")
    private String education;

    @Schema(description = "毕业院校")
    private String graduateSchool;

    @Schema(description = "工作经验(年)")
    private Integer workExperience;

    @Schema(description = "当前公司")
    private String currentCompany;

    @Schema(description = "当前职位")
    private String currentPosition;

    @Schema(description = "来源渠道")
    private String source;

    @Schema(description = "状态（0待筛选 1已筛选 2面试中 3已完成 4已淘汰）")
    private String status;

}